<link rel="stylesheet" type="text/css" href="assets/bootstrap-datepicker/css/datepicker.css" />
<!-- <link rel="stylesheet" type="text/css" href="assets/tag/selectpage.css" />
<link rel="stylesheet" type="text/css" href="assets/tag/demo.css" /> -->
<section id="main-content">
  <section class="wrapper">
    <!--state overview end-->
    <div class="row">
      <div class="col-lg-12">
        <!-- <section class="panel" id="addloc">
          <header class="panel-heading t-pbox">
            物资列表
            <div class="pro-search t-pright">
              <select class="form-control">
                <option value="">全部</option>
                <option value="">红酒</option>
                <option value="">白酒</option>
                <option value="">礼品</option>
                <option value="">其他</option>
              </select>
              <span>种类：</span>
              <select class="form-control">
                <option value="">全部</option>
                <option value="">北京</option>
                <option value="">南京</option>
                <option value="">上海</option>
                <option value="">广州</option>
              </select>
              <span>地点：</span>
            </div>
          </header>
          <div class="panel-body">
            <table class="table table-bordered">
              <thead>
                <tr>
                  <th>名称</th>
                  <th>单价</th>
                  <th>库存</th>
                  <th>地点</th>
                  <th>备注说明</th>
                  <th width="50px" style="text-align:center;">操作</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>罗曼尼-康帝</td>
                  <td>￥888.99元</td>
                  <td>12</td>
                  <td>南京</td>
                  <td>备注测试数据</td>
                  <td>
                    <button onclick="getline('NJ20180102','罗曼尼-康帝','888.99','12')" class="btn btn-info btn-xs"><i class="icon-plus"></i>
                      领取</button>
                  </td>
                </tr>
                <tr>
                  <td>拉菲</td>
                  <td>￥888.12元</td>
                  <td>18</td>
                  <td>南京</td>
                  <td>备注测试数据</td>
                  <td>
                    <button onclick="getline('NJ20180104','拉菲','888.12','18')" class="btn btn-info btn-xs"><i class="icon-plus"></i>
                      领取</button>
                  </td>
                </tr>
                <tr>
                  <td>瓦朗德鲁</td>
                  <td>￥500.88元</td>
                  <td>20</td>
                  <td>南京</td>
                  <td>备注测试数据</td>
                  <td>
                    <button onclick="getline('NJ20180108','瓦朗德鲁','500.88','20')" class="btn btn-info btn-xs"><i class="icon-plus"></i>
                      领取</button>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </section>
        <section class="panel">
          <div class="panel-heading">
            领用清单
            <span class="btn btn-default btn-xs pull-right"> 合计:￥<span class="sumprc">0.00</span>元</span>
          </div>
          <div class="panel-body">
            <ul id="reclbox"></ul>
          </div>
        </section> -->
        <section class="panel">
          <header class="panel-heading">
            基本信息
          </header>
          <div class="panel-body">
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">项目名称*</label>
              <div class="col-sm-10">
                <input type="text" value="" class="form-control" placeholder="自动检索项目名称"
                  onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">领取地点*</label>
              <div class="col-sm-10">
                <select class="form-control">
                  <option>南京</option>
                  <option>北京</option>
                  <option>广州</option>
                  <option>上海</option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">领取时间*</label>
              <div class="col-sm-10">
                <input type="text" value="" id="ltime" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                  placeholder="领取时间">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">领取人</label>
              <div class="col-sm-10">
                  <input type="text" value="" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                  placeholder="自动检索姓名">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">领取物资合计金额</label>
              <div class="col-sm-10">
                <div class="input-group m-bot15">
                  <span class="input-group-addon">￥</span>
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" class="form-control"
                    placeholder="自动计算合计金额" value="99.89" disabled>
                  <span class="input-group-addon">元</span>
                </div>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">理由/备注说明*</label>
              <div class="col-sm-10">
                <textarea class="form-control" maxlength="120" placeholder="字符长度限制(120字以内)"
                  onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"></textarea>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">是否勾选</label>
              <div class="col-sm-10">
                <div class="checkbox">
                  <label>
                    <input type="checkbox" id="zdcheck" onclick="shzdbox()"> 招待使用
                  </label>
                </div>
              </div>
            </div>
          </div>
        </section>

        <section class="panel" id="zdbox" style="display:none;">
          <header class="panel-heading">
            招待信息
          </header>
          <div class="panel-body">
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">招待类型*</label>
              <div class="col-sm-10">
                <select class="form-control">
                  <option>外部招待</option>
                  <option>内部团建</option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">招待日期*</label>
              <div class="col-sm-10">
                <input id="zdtime" class="form-control" placeholder="招待日期" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">招待标准*</label>
              <div class="col-sm-10">
                <div class="input-group m-bot15">
                  <span class="input-group-addon">￥</span>
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" class="form-control" min="0"
                    placeholder="具体金额">
                  <span class="input-group-addon">元</span>
                </div>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">所在城市*</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="所在城市(50字以内)" maxlength="50"
                  onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">地点*</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="具体地点(120字以内)" maxlength="120"
                  onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">备注*</label>
              <div class="col-sm-10">
                <textarea class="form-control" placeholder="字数长度限制(120字以内)" maxlength="120"
                  onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"></textarea>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">客户单位名称*</label>
              <div class="col-sm-10">
                <input class="form-control" placeholder="客户单位名称(120字以内)" maxlength="120"
                  onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">决策人员</label>
              <div class="col-sm-10">
                <textarea class="form-control" placeholder="请输入人员姓名(120字以内)" maxlength="120"
                  onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"></textarea>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">经办人员</label>
              <div class="col-sm-10">
                <textarea class="form-control" placeholder="请输入人员姓名(120字以内)" maxlength="120"
                  onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"></textarea>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">相关人员</label>
              <div class="col-sm-10">
                <textarea class="form-control" placeholder="请输入人员姓名(120字以内)" maxlength="120"
                  onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"></textarea>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">相关人员数量</label>
              <div class="col-sm-10">
                <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" value="" min="0"
                  class="form-control" placeholder="人员数量">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">随同人员</label>
              <div class="col-sm-10">
                <textarea class="form-control" placeholder="请输入人员姓名(120字以内)" maxlength="120"
                  onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"></textarea>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">随同人员数量</label>
              <div class="col-sm-10">
                <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" value="" min="0"
                  class="form-control" placeholder="人员数量">
              </div>
            </div>
          </div>
        </section>


        <section class="panel" id="letbox" style="display:none;">
          <header class="panel-heading">
            物资领用
          </header>
          <div class="panel-body">
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">物资地点*</label>
              <div class="col-sm-10">
                <select class="form-control">
                  <option value="">全部</option>
                  <option value="">北京</option>
                  <option value="">南京</option>
                  <option value="">上海</option>
                  <option value="">广州</option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">物资种类*</label>
              <div class="col-sm-10">
                <select class="form-control">
                  <option value="">请选择</option>
                  <option value="">红酒</option>
                  <option value="">白酒</option>
                  <option value="">礼品</option>
                  <option value="">其他</option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">物资名称*</label>
              <div class="col-sm-10">
                <select class="form-control">
                  <option>全部</option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">单价*</label>
              <div class="col-sm-10">
                <div class="input-group">
                  <span class="input-group-addon">￥</span>
                  <input type="text" class="form-control" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" disabled>
                  <span class="input-group-addon">元</span>
                </div>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">数量*</label>
              <div class="col-sm-10">
                <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" class="form-control" min="0"
                  placeholder="请输入需要领用数物资数量">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">总价*</label>
              <div class="col-sm-10">
                <div class="input-group">
                  <span class="input-group-addon">￥</span>
                  <input type="text" class="form-control" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" disabled>
                  <span class="input-group-addon">元</span>
                </div>
              </div>
            </div>
            <p class="default-buttons">
              <a href="javascript:void(0);" class="button-back btn btn-info" onclick="shLet();">取消</a>
              <a href="javascript:void(0);" class="button-next  btn btn-info" onclick="shLet()">提交</a>
            </p>
          </div>
        </section>

        <section class="panel">
          <header class="panel-heading">
            领用列表
            <i class="add-icon icon-plus" onclick="shLet()"> 新增</i>
          </header>
          <div class="panel-body">
            <div id="letContainer" class="dlshouwen-grid-container"></div>
          </div>
        </section>

        <section class="panel">
          <div class="panel-body">
            <p class="default-buttons">
              <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
              <a class="button-next  btn btn-success" href="#/editrec">确认提交</a>
            </p>
          </div>
        </section>
      </div>
    </div>
  </section>
</section>
<script type="text/javascript" src="assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>

<!-- <script type="text/javascript" src="tag/selectpage.js"></script>
<script type="text/javascript" src="tag/b.selectpage.js"></script>
<script type="text/javascript" src="assets/tag/js/demo.js"></script> -->

<script type="text/javascript">
  // 领取时间
  $('#ltime').datepicker({
    format: 'yyyy-mm-dd'
  });
  // 结束日期
  $('#zdtime').datepicker({
    format: 'yyyy-mm-dd'
  });
  // 是否招待
  function shzdbox() {
    var status = $("#zdcheck").is(':checked');
    if (status) {
      $("#zdbox").show();
    } else {
      $("#zdbox").hide();
    }
  }
</script>

<script type="text/javascript" src="js/receives/index.js"></script>